cmake_minimum_required(VERSION 3.0)

project(MyProject) # 这是你的项目名

# Eigen
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
# OpenCV
set(OpenCV_DIR E:/Program Files/opencv/build)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(MyProject main.cpp "utils.cpp" "utils.h")
target_link_libraries(MyProject ${OpenCV_LIBRARIES})